From 31e173c963d272d26ae86e641013ab438bfde79c Mon Sep 17 00:00:00 2001 From: "emellor@ewan" Date: Sat, 17 Sep 2005 10:29:33 +0100 Subject: [PATCH] Remove unused import, and unused class TwistedAdapter. Mark one variable as unused. Signed-off-by: Ewan Mellor --- tools/python/xen/sv/Main.py | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/tools/python/xen/sv/Main.py b/tools/python/xen/sv/Main.py index b6772c2509..ea62af11ea 100755 --- a/tools/python/xen/sv/Main.py +++ b/tools/python/xen/sv/Main.py @@ -1,5 +1,4 @@ -from xen.sv.HTMLBase import HTMLBase from xen.sv.NodeInfo import NodeInfo from xen.sv.DomInfo import DomInfo from xen.sv.CreateDomain import CreateDomain @@ -33,15 +32,8 @@ class Args: result.append( (key, self.fieldStorage.getlist( key ) ) ) return result -class TwistedAdapter: - def __init__( self, req ): - self.args = Args( req ) - self.uri = req.unparsed_uri - self.url = req.uri - self.write = req.write - # This is the Main class -# It peices together all the modules +# It pieces together all the modules class Main: def __init__( self ): @@ -61,7 +53,7 @@ class Main: self.init_modules( request ) self.init_done = True - for moduleName, module in self.modules.iteritems(): + for _, module in self.modules.iteritems(): module.write_MENU( request ) request.write( "\n" ) -- 2.30.2